package com.waves.chat.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.waves.core.web.domain.entities.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 微信消息表
 * </p>
 *
 * @author dlw
 * @since 2024-05-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wx_msg")
public class WxMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 微信openid用户标识
     */
    @TableField("open_id")
    private String openId;

    /**
     * 用户消息
     */
    @TableField("msg")
    private String msg;


    @TableField(value = "created_by")
    private Long createdBy;

    @TableField(value = "created_time")
    private Long createdTime;

    @TableField(value = "created_name")
    private String createdName;

    @TableField(value = "updated_by")
    private Long updatedBy;

    @TableField(value = "updated_time")
    private Long updatedTime;

    @TableField(value = "updated_name")
    private String updatedName;

    @TableField("del_flag")
    @TableLogic(delval = "id")
    private Integer delFlag;


}
